const { Router } = require("express")
const path = require("path")
const index = require("../controller/index.controller")
const login = require("../controller/login.controller")
const register = require("../controller/register.controller")
const huishou = require("../controller/houshui.controller")
//  引用路由配置
const app = Router()

app.get("/", index.views)
app.post("/getnovel", index.getnovel)
app.post("/novelchange", index.change)
app.post("/noveldelete", index.delete)

//
app.get("/login", login.views)
app.post("/login", login.login)
app.get("/register", register.views)
app.post("/register", register.register)

app.get("/huishou", huishou.views)
app.post("/getdelete", huishou.getdelete)


module.exports = app